// ES6 允许按照一定的模式从数组和对象中提取值，对变量进行赋值
// 这杯称为解构赋值
// 1 数组解构
const F4 = ['小沈阳','刘能','赵四','宋小宝'];
let [xiao, liu, zhaos, song] = F4
console.log(xiao)
console.log(liu)
console.log(zhaos)
console.log(song)
console.log("-------")


const zhao = {
  name: '赵本山',
  age: '不详',
  xiaopin: function() {
    console.log("我可以演小品")
  }
}
let {xiaopin} = zhao
xiaopin()